package edu.suda.mapper;

import edu.suda.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/******************************
 * @Description: 商品的持久层接口
 * @Author: 苏大
 */
public interface ProductMapper {
    void save(Product product);

    //void update(Product product);

    //void deleteById(Integer id);

    //void deleteSelected(@Param("ids") Integer[] idList);

    Product findById(Integer id);

    List<Product> findAll();

    List<Product> findByCondition(Map<String,Object> params);

}
